<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//Route::get('think', function () {
//    return 'hello,ThinkPHP6!';
//});
//
//Route::get('hello/:name', 'index/hello');
//Route::rule('ad/:id','address/detail');
//Route::rule('as/:id/:uid','address/search');
//Route::group('address',function(){
//    Route::rule('/:id','address/detail');
//    Route::rule('/:name','address/search');
//})->prefix('Address/')->pattern(['id'=>'\d+','name'=>'\w+']);
//Route::resource('blog','Blog');
//Route::get('ii/:id','DataTest/insert')->cache(3600);
//用户模块
//Route::resource('user','User');
//Route::rule('user/:id','User/read');
Route::rule('blog/edit/:id','Blog/edit');